package com.trkj.service;

import com.trkj.dao.BuildingDao;
import com.trkj.entity.BuildingEntity;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class BuildingImpl implements BuildingService{
    @Autowired
    private BuildingDao buildingDao;
    @Override
    public List<BuildingEntity> selectBuilding(BuildingEntity buildingEntity) {
        return buildingDao.selectBuilding(buildingEntity);
    }
    @Override
    public Boolean AddBuild(BuildingEntity buildingEntity) {
        return buildingDao.AddBuild(buildingEntity);
    }

    @Override
    public Boolean UpdateBuild(BuildingEntity buildingEntity) {
        return buildingDao.updateBuild(buildingEntity);
    }

    @Override
    public Boolean deleteBuild(int id) {
        return buildingDao.deleteBuild(id);
    }
    //查询所有栋数
    @Override
    public List<BuildingEntity> BuildingList(){
        return buildingDao.BuildingList();
    }
}
